/**
 * 
 */
package com.manthano.util.file.imports;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Vaibhav.Singh
 */
public class ImportRowError implements Serializable
{
	/**
	 * 
	 */
	private static final long		serialVersionUID	= 3036796191192277009L;
	private int						index				= 0;
	private List<ImportColumnError>	columnErrors		= new ArrayList<ImportColumnError>();

	/**
	 * @return the index
	 */
	public int getIndex()
	{
		return index;
	}

	/**
	 * @param index
	 *            the index to set
	 */
	public void setIndex(int index)
	{
		this.index = index;
	}

	/**
	 * @return the columnErrors
	 */
	public List<ImportColumnError> getColumnErrors()
	{
		return columnErrors;
	}

	/**
	 * @param columnErrors
	 *            the columnErrors to set
	 */
	public void setColumnErrors(List<ImportColumnError> columnErrors)
	{
		this.columnErrors = columnErrors;
	}

	/**
	 * @param column
	 * @param errorType
	 * @param errorValue
	 */
	public void addColumnError(String column, String errorType, String errorValue)
	{
		this.columnErrors.add(new ImportColumnError(column, errorType, errorValue));
	}
}
